package org.example.bootvue.mapper;

import org.apache.ibatis.annotations.Insert;
import org.example.bootvue.entity.Article;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author YourName
 * @since 2025-07-29
 */
public interface ArticleMapper extends BaseMapper<Article> {
    @Insert("insert into article(title,content,cover_img,state,category_id,create_user,create_time,update_time) " +
            "values(#{title},#{content},#{coverImg},#{state},#{categoryId},#{createUser},#{createTime},#{updateTime})")
    void add(Article article);


   // List<Article> list(Integer userId, Integer categoryId, String state);

}
